package cn.steam.bar.api;

import cn.steam.bar.model.WeaponCreateModel;
import cn.steam.bar.model.WeaponVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhang jintao on 2022/05/11
 **/
@RequestMapping("weapon")
public interface WeaponApi {

    @GetMapping("getById")
    @ApiOperation("根据ID查询")
    WeaponVO getById(@RequestParam("id") Integer id);

    @GetMapping("delete")
    @ApiOperation("根据ID删除")
    Boolean delete(@RequestParam("id") Integer id);

    @PostMapping("save")
    @ApiOperation("保存")
    Boolean save(@RequestBody WeaponCreateModel model);
}
